package com.github.sbb.sherry.console.exception;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * The type Error message.
 */
@Setter
@Getter
@ToString
public class ErrorMessage {

  public static final ErrorMessage SERVER_ERROR = new ErrorMessage(ErrorCode.SERVER_ERROR, "服务器异常");
  private String logCode;

  /**
   * 自定义的错误值
   */
  private String code;
  /**
   * 错误信息
   */
  private String message;

  public ErrorMessage() {
  }

  public ErrorMessage(String code, String message) {
    this.code = code;
    this.message = message;
  }

  public ErrorMessage(String code, String message, String logCode) {
    this.code = code;
    this.message = message;
    this.logCode = logCode;
  }

}
